﻿using Simulation.Framework;
using UnityEngine.Events;
using UnityEngine.UI;
using UnityEngine;
using System.Collections.Generic;
using System.Collections;

namespace Easy.Game2d {

    public partial class UISetPanel : PanelBase {

        public UnityEngine.UI.Button ExitButtonButton{get;private set;}

        #region control
        private void InitComponent() {
            // init
            ExitButtonButton = transform.Find("ExitButton").GetComponent<UnityEngine.UI.Button>();

            // button
            ExitButtonButton.onClick.RemoveAllListeners();
            ExitButtonButton.onClick.AddListener(OnExitButtonButtonClicked);
        }

        private void ClearComponent() {
            // button
            ExitButtonButton?.onClick.RemoveAllListeners();

            // clear
            ExitButtonButton = null;
        }
        #endregion


    }
}
